package com.sgl.retrofitdemo.net.model;

import com.sgl.retrofitdemo.net.entity.request.UserInfo;
import com.sgl.retrofitdemo.net.entity.respons.UserInfoEntity;

import rx.Observable;

/**
 * Created by sunqiyong on 2016/11/13.
 */

public interface IUserModel {
    /**
     * 测试POST请求
     * @param userInfo 用户请求实体类
     * @return
     */
    Observable<UserInfoEntity> testPost(UserInfo userInfo);

    /**
     * 测试GET请求
     * @param count 账号
     * @param password 密码
     * @return
     */
    Observable<UserInfoEntity> testGet(String count,String password);
}
